<?php
	require_once "../../sesi_login.php";
	require_once "../../konfigurasi.php";
	
	fungsi('perkara');

	$kd = $_POST['kd'];
	
	koneksi_buka();

	$q = mysql_fetch_array(mysql_query("SELECT * FROM t_pemberitahuan WHERE kd_pemberitahuan='$kd'"));	
	mysql_query("update t_pemberitahuan set terbaca='y' where kd_pemberitahuan='$kd'");
		
	
		
	$isi = explode('=>',$q[pemberitahuan]);

	$penyidik = mysql_fetch_array(mysql_query("select * from r_kesatuan WHERE kd_kesatuan ='$isi[4]'"));
	$pidana = mysql_fetch_array(mysql_query("select * from r_jenis_pidana WHERE kd_pidana ='$isi[6]'"));		
	
?>
<style>
	td {
		font-size: 14pt;
	}
	
	#underline { 
		border-bottom: 2px solid #000000;
	}
	
	#logo { 
		width: 780px;
		border-bottom: 2px solid #000000;
		text-align: center;
		font-size: 14pt;
		font-weight: bold;

	}
	#sublogo { 
		width: 200px;
		text-align: center;
		font-size: 14pt;
	}
	
	#header { 
		width: 500px;
		font-size: 20pt;
		font-weight: bold;
		border-bottom: 2px solid #000000;
	}
	
	
	td {
		padding-bottom: 10px;
	}
	
	p {
		line-height : 250%;
		text-align: justify;
		text-indent: 3em;
	} 
</style>

<table width="800" height="1290" border="0">
<tr valign="top">
	<td colspan="12" height="120">
		<div id="logo">
		<?php echo $isi[0]; ?>
		</div>
	</td>	
</tr>
<tr>
	<td width="200">Nomor Perkara</td>
	<td width="15">:</td>
	<td><?php echo $isi['1']." ".$kd;?></td>
</tr>
<tr valign="top">
	<td>Nomor Polisi</td>
	<td>:</td>
	<td><?php echo $isi['2'];?></td>

</tr>
<tr>
	<td>Tanggal Penyidikan</td>
	<td>:</td>
	<td><?php echo konversi_tanggal('d-m-Y H:i:s',$isi['3']);?></td>
</tr>
<tr valign="top">
	<td>Penyidik</td>
	<td>:</td>
	<td align="justify" width="300"><?php echo $penyidik['nm_kesatuan'];?></td>
</tr>
<tr>
	<td>Melanggar Pasal</td>
	<td>:</td>
	<td><?php echo $isi['5'];?></td>
</tr>
<tr>
	<td>Jenis Pidana</td>
	<td>:</td>
	<td><?php echo $pidana['jns_pidana'];?></td>
</tr>
<tr>
	<td>Tanggal Diterima SPDP</td>
	<td>:</td>
	<td><?php echo konversi_tanggal('d-m-Y H:i:s',$isi['7']);?></td>
</tr>

<tr>
	<td height="60" colspan="6"></td>
</tr>
<tr valign="top">
	<td></td>
	<td></td>
	<td colspan="4" align="right" height="880"></td>
</tr>
</table>
